
data = {}
data.success = {
    success:200,message:"操作成功",
    data:{},
    replaceData:function (item) {
        this.data = item;
        return this;
    }

}
data.error = {
    success:500,message:"系统错误",
    data:{},
    replaceData:function (item) {
        this.data = item;
        return this;
    },changeMessage:function(msg){
        this.message = msg;
        return this;
    }

}
module.exports = data;